package com.youkeyi.ddy.cloud.common.api.basic.pub.mapping;

import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.dto.PublicMappingListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.param.PublicMappingBusinessUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.param.PublicMappingQueryCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * PublicMappingCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicMappingCloudServiceFallback.class)
@RequestMapping("/public/mapping")
public interface PublicMappingCloudService {

    /**
     * 查询映射信息.
     *
     * @param param the param
     * @return the mapping list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicMappingListCloudDto query(@RequestBody PublicMappingQueryCloudParam param);

    /**
     * 新增映射.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent businessUpdate(@RequestBody PublicMappingBusinessUpdateCloudParam param);

}
